package com.cms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;


@Data
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Goods对象", description="")
@ToString
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "图片地址")
    @TableField("avatar_url")
    private String avatarUrl;

    @ApiModelProperty(value = "名字")
    @TableField("name")
    private String goodsName;

    @ApiModelProperty(value = "所属仓库")
    @TableField("storage_id")
    private Integer storageId;

    @ApiModelProperty(value = "产地")
    @TableField("source_id")
    private Integer sourceId;

    @ApiModelProperty(value = "所属分类")
    @TableField("goods_type_id")
    private Integer goodsTypeId;

    @ApiModelProperty(value = "数量")
    private Integer count;

    @ApiModelProperty(value = "备注")
    private String remark;
}

